@extends('admin.index')
@section('title','后台分类添加')
 @section('con')
 <div class="row">
 	@if (count($errors) > 0)
	    <div class="alert alert-danger">
	        <ul>
	            @foreach ($errors->all() as $error)
	                <li>{{ $error }}</li>
	            @endforeach
	        </ul>
	    </div>
	@endif
    <div class="col-lg-6 col-lg-offset-3" >
        <form role="form" method="post" action="{{url('/admin/type/videoupdate')}}" enctype="multipart/form-data">
            <div class="form-group">
                <label>视频名</label>
                <input class="form-control" type="text" name="film" value="{{$res[0]->film}}">
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label>收费</label>
                <select class="form-control" name="vips" >
                    <option value="0" {{$res[0]->vips==0?'selected':''}}>免费</option>
                    <option value="1" {{$res[0]->vips==1?'selected':''}}>付费</option>
                </select>
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label>简介</label>
                <input class="form-control" type="text" name="content" value="{{$res[0]->content}}">
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label>详细说明</label>
                <input class="form-control" type="text" name="describe" value="{{$res[0]->describe}}">
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label>视频海报</label>
                <input  type="file" name="url" value="{{$res[0]->url}}">
            </div>
            <div class="form-group">
                <label>视频文件</label>
                <input  type="file" name="upload" value="{{$res[0]->upload}}">
            </div>
                <input  type="hidden" name="id" value="{{$res[0]->id}}">
            {{ csrf_field() }}
            <button class="btn btn-default" type="submit">提交</button>
            <button class="btn btn-default" type="reset">重置</button>
        </form>
    </div>
 </div>  
 @endsection
